const {execSync} = require('child_process');

const result = execSync('./short-cmd', {stdio: undefined} ); 

console.log('master-process:', result.toString());

try{
  const result1 = execSync('./throw-exception', {stdio: undefined});
}
catch(err){
  console.log('master-process:', err.stderr.toString());
}

